package com.seehope.practice;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Practice4 extends JFrame{

	public static void main(String[] args) {
		
		new Practice4();
	}
	public Practice4() {
		this.setSize(500,200);
		this.setVisible(true);
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.setLayout(new FlowLayout());
		for(int i=0;i<6;i++) {
			JButton button=new JButton(String.valueOf((char)(65+i)));
			this.add(button);
		}
	}

}
